﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="RegisterUser.aspx.cs" Inherits="Smart.Account.RegisterUser" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Създаване на Потребителски Профил
    </h2>
    <p>
        Моля поълнете формата по-долу, за да създадете нов потребителски профил.
    </p>
    <span class="failureNotification">
        <asp:Literal ID="ErrorMessage" runat="server"></asp:Literal>
    </span>
    <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
        ValidationGroup="RegisterUserValidationGroup" />
    <div class="accountInfo">
        <fieldset class="register">
            <legend>Информация за потребителския профил</legend>
            <p>
                <asp:Label ID="lblEmail" runat="server" AssociatedControlID="tbEmail" Text="E-mail:" />
                <asp:TextBox ID="tbEmail" runat="server" CssClass="textEntry" />
                <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="tbEmail"
                    CssClass="failureNotification" ErrorMessage="Електронният адрес е задължителен." ToolTip="Електронният адрес е задължителен."
                    ValidationGroup="RegisterUserValidationGroup" Text="*" />
            </p>
            <p>
                <asp:Label ID="lblPassword" runat="server" AssociatedControlID="tbPassword" Text="Парола:" />
                <asp:TextBox ID="tbPassword" runat="server" CssClass="passwordEntry" TextMode="Password" />
                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="tbPassword"
                    CssClass="failureNotification" ErrorMessage="Паролата е задължителна." ToolTip="Паролата е задължителна."
                    ValidationGroup="RegisterUserValidationGroup" Text="*" />
            </p>
            <p>
                <asp:Label ID="lblConfirmPassword" runat="server" AssociatedControlID="tbConfirmPassword"
                    Text="Потвърждаване на парола:" />
                <asp:TextBox ID="tbConfirmPassword" runat="server" CssClass="passwordEntry" TextMode="Password" />
                <asp:RequiredFieldValidator ControlToValidate="tbConfirmPassword" CssClass="failureNotification"
                    Display="Dynamic" ErrorMessage="Confirm Password is required." ID="ConfirmPasswordRequired"
                    runat="server" ToolTip="Confirm Password is required." ValidationGroup="RegisterUserValidationGroup"
                    Text="*" />
                <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="tbPassword"
                    ControlToValidate="tbConfirmPassword" CssClass="failureNotification" Display="Dynamic"
                    ErrorMessage="The Password and Confirmation Password must match." ValidationGroup="RegisterUserValidationGroup"
                    Text="*" />
            </p>
            <p>
                <asp:Label ID="lblFirstName" runat="server" AssociatedControlID="tbFirstName" Text="Име:" />
                <asp:TextBox ID="tbFirstName" runat="server" CssClass="textEntry" />
            </p>
            <p>
                <asp:Label ID="lblLastName" runat="server" AssociatedControlID="tbLastName" Text="Фамилия:" />
                <asp:TextBox ID="tbLastName" runat="server" CssClass="textEntry" />
            </p>
            <p>
                <asp:Label ID="lblPhone" runat="server" AssociatedControlID="tbPhone" Text="Телефон:" />
                <asp:TextBox ID="tbPhone" runat="server" CssClass="textEntry" />
            </p>
        </fieldset>
        <p class="submitButton">
            <asp:Button ID="CreateUserButton" runat="server" CommandName="MoveNext" Text="Създаване на Профил"
                ValidationGroup="RegisterUserValidationGroup" OnClick="CreateUserButton_Click" />
        </p>
    </div>
</asp:Content>
